﻿@model KCMS.BusinessLogic.Models.Page
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
   
    <div class="editor-label">
        @Html.LabelFor(model => model.Title)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Title)
        @Html.ValidationMessageFor(model => model.Title)
    </div>
    
    <div class="editor-label">
        @Html.LabelFor(model => model.MetaKeys)
    </div>
    <div class="editor-field">
        @Html.TextAreaFor(model => model.MetaKeys, 5, 50, new { @class = "html-editor-simple" })
        @Html.ValidationMessageFor(model => model.MetaKeys)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.MetaDescription)
    </div>
    <div class="editor-field">
        @Html.TextAreaFor(model => model.MetaDescription, 5, 50, new { @class = "html-editor-simple" })
        @Html.ValidationMessageFor(model => model.MetaDescription)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.Text)
    </div>
    <div class="editor-field">
        @Html.TextAreaFor(model => model.Text, 40, 110, new { @class = "html-editor" })
        @Html.ValidationMessageFor(model => model.Text)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.Published)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Published)
        @Html.ValidationMessageFor(model => model.Published)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.Code)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Code)
        @Html.ValidationMessageFor(model => model.Code)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.Index)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Index)
        @Html.ValidationMessageFor(model => model.Index)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.DateOfCreate)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.DateOfCreate)
        @Html.ValidationMessageFor(model => model.DateOfCreate)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.DateOfChange)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.DateOfChange)
        @Html.ValidationMessageFor(model => model.DateOfChange)
    </div>
       
    @Html.HiddenFor(model => model.Id)

      
}